package com.slipper.system.log.front;

import com.slipper.common.bo.Result;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

import com.slipper.system.api.log.bo.OperatorLogBO;
import com.slipper.system.api.log.service.IOperatorLogSv;
import com.slipper.system.log.service.OperatorLogService;
import com.slipper.common.util.ResultUtil;

import java.util.List;

@RestController
public class OperatorLogSv implements IOperatorLogSv {
    @Resource
    private OperatorLogService operatorLogService;
    
    @Override
    public Result<OperatorLogBO> queryBy(String id){
        return ResultUtil.successResult(operatorLogService.queryBy(id));
    }
    
    @Override
    public Result<List<OperatorLogBO>> queryPage(OperatorLogBO bo){
        return ResultUtil.successResult(operatorLogService.queryPage(bo));
    }
    
    @Override
    public Result<?> save(OperatorLogBO bo){
        return ResultUtil.saveResult(operatorLogService.save(bo));
    }
    
    @Override
    public Result<?> delete(OperatorLogBO bo){
        return ResultUtil.deleteResult(operatorLogService.delete(bo));
    }
}
